<!DOCTYPE html>
<!-- saved from url=(0192)https://passport.hupu.com/login?project=nba&display=&from=https%3A%2F%2Fnba.hupu.com%2F%3F_t_t_t%3D0.021598102990537882&jumpurl=https%3A%2F%2Fnba.hupu.com%2F%3F_t_t_t%3D0.021598102990537882 -->
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <title>
        注册社区

    </title>
    <link rel="stylesheet" href="/css/register/reset.css">
    <link rel="stylesheet" href="/css/register/passport.css">
    <link rel="stylesheet" href="/css/register/passport-index.css">
    <script src="/js/jquery-1.12.4.js"></script>
</head>
<body class="">
<div class="bg-img">
    <img src="/js/register/timg3.jpg" alt="">
</div>
<div class="user-login">


    <div class="login-wrap">
        <div class="logo">
            <img src="/js/register/logo.png" alt="">
        </div>
        <form action="" class="common-form register-form" id="J_regForm"  method="post">
            <ul>
                <li class="clearfix">
                    <div class="ipt-wrap">
                        <input autocomplete="off" id="mobile" type="text" name="mobile" placeholder="请输入大陆地区的手机号" maxlength="11" data-rule="empty|phone" data-name="手机号" class="mobile">
                    </div>
                </li>

                <li class="clearfix">
                    <div class="ipt-wrap authcode-wrap fl">
                        <input autocomplete="off" id="validCode" type="text" class="msgcode" name="authcode" placeholder="输入短信验证码" data-rule="empty|msgcode" data-name="短信验证码" maxlength="6">
                    </div>
                    <button type="button" class="get-vercode fl" data-btn="短信发送中" id="yanzheng_btn">获取短信验证码</button>
                </li>
               <li>
                   <div class="ipt-wrap">
                       <input  id="password" type="password" name="password" placeholder="请输入密码" maxlength="11" data-rule="empty|phone" data-name="手机号" class="mobile">
                   </div>                 </li>
                <li><input type="button" id="register" class="reg-btn" value="注册"></li>
            </ul>
        </form>
        <div class="login-method">
            <a href="" class="login-weixin pop-box">微信登录</a>
            <a href="" class="login-qq pop-box">QQ登录</a>
            <a href="" class="login-phone">已有帐号，立即登录</a>
        </div>
    </div>

    <script>
        $("#yanzheng_btn").click(function(){
            if(!$("#mobile").val()){
                alert("请输入手机号码！");
                return;
            }
            $.ajax({
                url:"/getValidCode.do",
                method:"post",
                data: {mobile:$("#mobile").val()},
                dataType:"json",
                success:function(result){
                    alert(result.msg);
                },
                error:function () {
                    alert("失败111");
                }
            });
        });

        $("#register").click(function () {
            if(!$("#mobile").val()){
                alert("请输入手机号码！");
                return;
            }
            if(!$("#validCode").val()){
                alert("请输入验证码！");
                return;
            }
            $.ajax({
                url:"/checkValidCode.do",
                method:"post",
                data: {mobile:$("#mobile").val(),password:$("#password").val(),validCode:$("#validCode").val()},
                dataType:"json",
                success:function(result){
                    alert(result.msg);
                    if (result.flag==true){
                        location="/page/front_page/admin/login.htm";
                    }
                }
            });
        });


    </script>


    <div class="pop-wrap">
        <div class="pop-hd">提示

        </div>
        <div class="pop-txt">

        </div>
        <div class="pop-btn pop-btn2">

        </div>
    </div>
    <div class="pop-wrap-info">
        <div class="pop-txt-info">
        </div>
    </div>
    <div id="cboxOverlay"></div>
</div>


</body></html>